package vip.denglei.company.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import vip.denglei.company.model.app.AppUserOrder;

import java.util.List;

@Mapper
public interface AppUserOrderMapper extends BaseMapper<AppUserOrder> {
    int deleteByPrimaryKey(Integer id);

    int insert(AppUserOrder record);

    int insertSelective(AppUserOrder record);

    AppUserOrder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AppUserOrder record);

    int updateByPrimaryKey(AppUserOrder record);

    List<AppUserOrder> selectOrderByUserIdAndStatus(String userId, int orderStatus, int pageSize, int offset);

    List<AppUserOrder> selectOrderByUserIdAndStatusAll(String userId, int pageSize, int offset);

    int updateDeleteFlagByOrderIdAndUserId(String userId, String orderId);
}